//
// Created by HZH on 2023-04-30.
//

#ifndef BZDB_BZDB_THREAD_CAS_H
#define BZDB_BZDB_THREAD_CAS_H


#include "../BzDB_type.h"

// 自旋锁

#ifdef __cplusplus
extern "C"{
#endif

//void BzDB_thread_wait_cas(unsigned char  *clock);
//void BzDB_thread_wait_clock_cas(unsigned char   *clock);


void BzDB_thread_wait_and_clock_cas(unsigned char  *clock);
void BzDB_thread_unclock_cas(unsigned char   *clock);

#ifdef __cplusplus
};
#endif


#endif //BZDB_BZDB_THREAD_CAS_H
